/**
  ******************************************************************************
  * File Name          : ltlx.h
  * Description        : 
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */

#ifndef __ltlx_H
#define __ltlx_H

/* Includes ------------------------------------------------------------------*/
#include <stdint.h>
#include "route_lx_interface.h"

#define LTLX_RXCMDQUE_LENGTH      10
#define LTLX_RXCMDQUE_ITEMSIZE    sizeof(uint16_t)

#define LTLX_CMD_ON               (0xA0A1u)
#define LTLX_CMD_OFF              (0xA2A3u)

typedef struct
{
  LtLx_ParaType para;
  uint16_t crc16;
}LtLx_StorageParaType;


extern const uint16_t LtLx_SendCmdOn;
extern const uint16_t LtLx_SendCmdOff;

extern LtLx_ParaType  LtLx_RunPara;
extern LtLx_StateType LtLx_State_last;
extern volatile LtLx_StateType LtLx_State;
extern volatile uint32_t Ltlx_TimerTick;

extern void Ltlx_BspInit(void);
extern void LtLx_TimeoutIsr(void);
extern uint8_t LtLx_ParaCheck(LtLx_ParaType *para);

#endif /* __ltlx_H */
